package javase0906;

import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.io.Serializable;

class Dish implements Serializable {

    private String name;
    private double price;
    private String description;

    private int quantity;


    //菜品图片路径

    // 构造函数、getter和setter方法

    public Dish(String name, double price, String description) {
        this.name = name;
        this.price = price;
        this.description = description;
        this.quantity = 0;

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }


    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public int getQuantity() {
        return quantity;
    }

}
